const OpenAI = require('openai');
const openai = new OpenAI({
    // organization: "org-9N3y1LTPLiJVZN3CmQK1MLjN",
    apiKey: "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",
    // project: "$PROJECT_ID",
});

const test = async () => {
    try {
        const completion = await openai.chat.completions.create({
            model: "gpt-3.5-turbo",
            messages: [
                { role: "system", content: "hello" },
            ],
        });

        console.log(completion.choices[0].message);
    } catch (err) {
        console.log(err);
    }

}

test();